package com.david.IfaceAutoTest.execption;

import com.david.IfaceAutoTest.enums.ResultCode;

/**
 * @author David
 */
public class CommonException extends RuntimeException {

    private Integer code ;

    public CommonException(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.code = resultCode.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
